using System;
using ns27;
using Triton.Game.Mono;

namespace Triton.Game.Mapping
{
	[Attribute38("BnetPlayerChange")]
	public class BnetPlayerChange : MonoClass
	{
		public BnetPlayer m_oldPlayer => method_3<BnetPlayer>("m_oldPlayer");

		public BnetPlayer m_newPlayer => method_3<BnetPlayer>("m_newPlayer");

		public BnetPlayerChange(IntPtr address, string className)
			: base(address, className)
		{
		}

		public BnetPlayerChange(IntPtr address)
			: this(address, "BnetPlayerChange")
		{
		}

		public BnetPlayer GetOldPlayer()
		{
			return method_14<BnetPlayer>("GetOldPlayer", Array.Empty<object>());
		}

		public void SetOldPlayer(BnetPlayer player)
		{
			method_8("SetOldPlayer", player);
		}

		public BnetPlayer GetNewPlayer()
		{
			return method_14<BnetPlayer>("GetNewPlayer", Array.Empty<object>());
		}

		public void SetNewPlayer(BnetPlayer player)
		{
			method_8("SetNewPlayer", player);
		}

		public BnetPlayer GetPlayer()
		{
			return method_14<BnetPlayer>("GetPlayer", Array.Empty<object>());
		}
	}
}
